package com.lzxzjy.serivce;

import com.lzxzjy.pojo.PageBean;
import com.lzxzjy.pojo.Reader;

public interface ReaderService {
    boolean insertReader(Reader reader);

    PageBean<Reader> selectReaderByPageAndTerms(Reader reader, int currentPage, int pageSize);

    boolean deleteReaderByIds(int[] readerIds);

    boolean deleteReaderById(int readerId);

    boolean updateReaderById(Reader reader);

    Reader selectReaderByUsernameAndPassWord(String username, String password);

    boolean selectReaderEmailByEmail(String email);

    boolean selectReaderPhoneByPhone(String readerPhone);
}
